package com.lkj.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author likanjie
 * @Date 2020/9/7 9:17 下午
 */
@Component
@ConfigurationProperties(prefix = "file")
public class FileConfig {

    private static String profile;

    public static String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        FileConfig.profile = profile;
    }

    public static String getUploadPath(){

        return FileConfig.profile + "/upload";
    }
}
